//
//  MSZoomingScrollView.h
//  MSPhotoBrowser
//
//  Created by zzg on 2021/8/30.
//

#import <Foundation/Foundation.h>
#import "MSPhotoProtocol.h"
#import "MSTapDetectingImageView.h"
#import "MSTapDetectingView.h"

@class MSPhotoBrowser, MSPhoto, MSCaptionView;

@interface MSZoomingScrollView : UIScrollView <UIScrollViewDelegate, MSTapDetectingImageViewDelegate, MSTapDetectingViewDelegate> {

}

@property () NSUInteger index;
@property (nonatomic) id <MSPhoto> photo;
@property (nonatomic, weak) MSCaptionView *captionView;
@property (nonatomic, weak) UIButton *selectedButton;
@property (nonatomic, weak) UIButton *playButton;

- (id)initWithPhotoBrowser:(MSPhotoBrowser *)browser;
- (void)displayImage;
- (void)displayImageFailure;
- (void)setMaxMinZoomScalesForCurrentBounds;
- (void)prepareForReuse;
- (BOOL)displayingVideo;
- (void)setImageHidden:(BOOL)hidden;

@end
